<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Generator" content="ECSHOP v2.7.3" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="<?php echo $this->_var['keywords']; ?>" />
<meta name="Description" content="<?php echo $this->_var['description']; ?>" />

<title><?php echo $this->_var['page_title']; ?></title>

<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link href="<?php echo $this->_var['ecs_css_path']; ?>" rel="stylesheet" type="text/css" />

<?php echo $this->smarty_insert_scripts(array('files'=>'common.js,user.js,transport.js')); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'jquery1.72.js,jquery.json.js')); ?>
<body>
<?php echo $this->fetch('library/page_header_1.lbi'); ?>
<style type="text/css">
select, input{padding: 0}
</style>
<div class="blank"></div>

<?php if ($this->_var['action'] == 'login'): ?>
<div class="wrapper">
  <div class="login content">
    <div class="box-frame">
      <h1>登录<?php echo $this->_var['shop_name']; ?></h1>
      <div class="box-main clearfix">
        <div class="mod-login fl">
          <form name="formLogin" action="user.php" method="post" onSubmit="return userLogin()">
            <dl>
              <dt>帐&#12288;号：</dt>
              <dd>
                <input type="text" class="txt-input txt-user hint-user" name="username" value="">
              </dd>
            </dl>
            <dl>
              <dt>密&#12288;码：</dt>
              <dd>
                <input type="password" class="txt-input txt-pass" name="password" value="">
              </dd>
            </dl>
            <?php if ($this->_var['enabled_captcha']): ?>
            <dl>
              <dt>验证码：</dt>
              <dd>
                <input type="text" style="width: 70px;" class="txt-input txt-rand" name="captcha">
                <img src="captcha.php?is_login=1&<?php echo $this->_var['rand']; ?>" alt="captcha" style="vertical-align: middle;cursor: pointer;" onClick="this.src='captcha.php?is_login=1&'+Math.random()" /> </dd>
            </dl>
            <?php endif; ?>
            <dl>
              <dd>
                <input type="checkbox" value="1" name="remember" id="remember" />
                <label for="remember" style="display:inline;"><?php echo $this->_var['lang']['remember']; ?></label>
                <br />
                <a title="忘记密码" href="" id="forget-password">[忘记密码？]</a> <a href="user.php?act=qpassword_name" class="f3"><?php echo $this->_var['lang']['get_password_by_question']; ?></a>&nbsp;&nbsp;&nbsp;<a href="user.php?act=get_password" class="f3"><?php echo $this->_var['lang']['get_password_by_mail']; ?></a> </dd>
            </dl>
            <dl>
              <dd>
                <input type="hidden" name="act" value="act_login" />
                <input type="hidden" name="back_act" value="<?php echo $this->_var['back_act']; ?>" />
                <input class="btn-login" type="submit" value="登陆">
              </dd>
            </dl>
          </form>
        </div>
        <input type="hidden" id="alipaysubmit">
        <div class="mod-login-note fr">
          <h3><?php echo $this->_var['lang']['user_reg_info']['0']; ?></h3>
          <p><?php echo $this->_var['lang']['user_reg_info']['1']; ?>：</p>
          <ul>
            <?php if ($this->_var['car_off'] == 1): ?>
            <li><?php echo $this->_var['lang']['user_reg_info']['2']; ?></li>
            <?php endif; ?>
            <?php if ($this->_var['car_off'] == 0): ?>
            <li><?php echo $this->_var['lang']['user_reg_info']['8']; ?></li>
            <?php endif; ?>
            <li><?php echo $this->_var['lang']['user_reg_info']['3']; ?>：</li>
            <li><?php echo $this->_var['lang']['user_reg_info']['4']; ?></li>
            <li><?php echo $this->_var['lang']['user_reg_info']['5']; ?></li>
            <li><?php echo $this->_var['lang']['user_reg_info']['6']; ?></li>
            <li><?php echo $this->_var['lang']['user_reg_info']['7']; ?></li>
          </ul>
          <p class="tac mt20"> <a title="10秒快捷注册新会员" class="btn-register" href="user.php?act=register">10秒快捷注册新会员</a> </p>
        </div>
      </div>
    </div>
  </div>
</div>
<?php endif; ?>


<?php if ($this->_var['action'] == 'register'): ?>
<?php if ($this->_var['shop_reg_closed'] == 1): ?>
<div class="usBox">
  <div class="usBox_2 clearfix">
    <div class="f1 f5" align="center"><?php echo $this->_var['lang']['shop_register_closed']; ?></div>
  </div>
</div>
<?php else: ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'utils.js')); ?>
<div class="wrapper">
  <div class="login content">
    <div class="box-frame">
      <h1>注册<?php echo $this->_var['shop_name']; ?>会员,仅需一步！</h1>
      <div class="box-main clearfix">
        <div class="mod-login fl">
          <form action="user.php" method="post" name="formUser" onsubmit="return register();">
            <dl>
              <dt>帐&#12288;&#12288;号：</dt>
              <dd>
                <input type="text" value="" class="txt-input txt-user" name="username" maxlength="50" onblur="is_registered(this.value);">
               <span class="error" id="username_notice"> *</span> </dd>
            </dl>
            <dl>
              <dt>邮&#12288;&#12288;箱：</dt>
              <dd>
                <input type="text" id="email" onblur="checkEmail(this.value);" class="txt-input txt-pass hint-pass" name="email">
                <span class="error" id="email_notice"> *</span> </dd>
            </dl>
            <dl>
              <dt>密&#12288;&#12288;码：</dt>
              <dd>
                <input type="password" class="txt-input txt-pass hint-pass" name="password" id="password1" onblur="check_password(this.value);" onkeyup="checkIntensity(this.value)"> <span class="error" id="password_notice"> *</span>
              </dd>
            </dl>
            <dl>
              <dt>密码确认：</dt>
              <dd>
                <input type="password" class="txt-input txt-pass2" name="confirm_password"  id="conform_password" onblur="check_conform_password(this.value);" >
                <span class="error" id="conform_password_notice"> *</span></dd>
            </dl>
            <?php $_from = $this->_var['extend_info_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'field');if (count($_from)):
    foreach ($_from AS $this->_var['field']):
?>
            <?php if ($this->_var['field']['id'] == 6): ?>
            <dl>
              <dt >密保问题：</dt>
              <dd>
                <select name='sel_question'>
                  <option value='0'><?php echo $this->_var['lang']['sel_question']; ?></option>
                  
	  <?php echo $this->html_options(array('options'=>$this->_var['passwd_questions'])); ?>
	  
                </select>
              </dd>
            </dl>
            <dl>
              <dt <?php if ($this->_var['field']['is_need']): ?>id="passwd_quesetion"<?php endif; ?>>密保答案：</dt>
              <dd>
                <input name="passwd_answer" type="text" class="txt-input" maxlengt='20'/>
                <?php if ($this->_var['field']['is_need']): ?>
                 <span class="error"> *</span>
                <?php endif; ?>
              </dd>
            </dl>
            <?php else: ?>
            <dl>
              <dt <?php if ($this->_var['field']['is_need']): ?>id="extend_field<?php echo $this->_var['field']['id']; ?>i"<?php endif; ?>> <?php echo $this->_var['field']['reg_field_name']; ?>：</dt>
              <dd>
                <input name="extend_field<?php echo $this->_var['field']['id']; ?>" type="text" class="txt-input" />
                <?php if ($this->_var['field']['is_need']): ?>
                 <span class="error" > *</span>
                <?php endif; ?>
              </dd>
            </dl>
            <?php endif; ?>
            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
            <?php if ($this->_var['enabled_captcha']): ?>
            <dl>
              <dd>
              <dt>验 证 码：</dt>
              <dd>
                <input type="text" class="txt-input txt-rand" name="captcha">
                <img src="captcha.php?<?php echo $this->_var['rand']; ?>" alt="captcha" style="vertical-align: middle;cursor: pointer;" onClick="this.src='captcha.php?'+Math.random()" /> </dd>
            </dl>
            <?php endif; ?>
            <dl>
              <dd class="clause">
                <label>
                <input name="agreement" type="checkbox" value="1" checked="checked"  class="chk-clause"/>
                <?php echo $this->_var['lang']['agreement']; ?></label>
              </dd>
            </dl>
            <dl>
              <dd>
                <input name="act" type="hidden" value="act_register" >
                <input type="hidden" name="back_act" value="<?php echo $this->_var['back_act']; ?>" />
                <input class="btn-register" type="submit" value="注册完成">
              </dd>
            </dl>
          </form>
        </div>
        <div class="mod-login-note fr">
          <h3><?php echo $this->_var['lang']['user_reg_info']['0']; ?></h3>
          <p><?php echo $this->_var['lang']['user_reg_info']['1']; ?>：</p>
          <ul>
            <?php if ($this->_var['car_off'] == 1): ?>
            <li><?php echo $this->_var['lang']['user_reg_info']['2']; ?></li>
            <?php endif; ?>
            <?php if ($this->_var['car_off'] == 0): ?>
            <li><?php echo $this->_var['lang']['user_reg_info']['8']; ?></li>
            <?php endif; ?>
            <li><?php echo $this->_var['lang']['user_reg_info']['3']; ?>：</li>
            <li><?php echo $this->_var['lang']['user_reg_info']['4']; ?></li>
            <li><?php echo $this->_var['lang']['user_reg_info']['5']; ?></li>
            <li><?php echo $this->_var['lang']['user_reg_info']['6']; ?></li>
            <li><?php echo $this->_var['lang']['user_reg_info']['7']; ?></li>
          </ul>
          <p class="tac mt20"> <a title="我有账号，立即登录" class="btn-register" href="user.php?act=login">我有账号，立即登录</a> </p>
        </div>
      </div>
    </div>
  </div>
</div>
<?php endif; ?>
<?php endif; ?>



<?php if ($this->_var['action'] == 'get_password'): ?>
    <?php echo $this->smarty_insert_scripts(array('files'=>'utils.js')); ?>
    <script type="text/javascript">
        <?php $_from = $this->_var['lang']['password_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
          var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
        <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    </script>
	
	<div class="wrapper">
       <div class="login content">
            <div class="box-frame">
                <h1>请输入您注册时填写的电子邮件地址。</h1>
                <div class="box-main clearfix">
                    <div class="mod-login fl">
                        <form action="user.php" method="post" name="getPassword" onsubmit="return submitPwdInfo();">
                          <dl>
                              <dt>电子邮箱：</dt>
                              <dd>
                                <input type="text" value="" name="email" class="txt-input">
                              </dd>
                          </dl>
                          <dl>
                              <dd>
                                <input type="hidden" name="act" value="send_pwd_email" />
                                <input type="submit" name="submit" value="<?php echo $this->_var['lang']['submit']; ?>" class="btn-login" style="border:none; float:left;" />
                                <input name="button" type="button" onclick="history.back()" value="<?php echo $this->_var['lang']['back_page_up']; ?>" style="border:none; float:left;" class="btn-login" />
                              </dd>
                          </dl>
                        </form>
                    </div>
                </div>
            </div>
        </div>
	</div>
<?php endif; ?>



<?php if ($this->_var['action'] == 'qpassword_name'): ?>

<div class="wrapper">
  <div class="login content">
    <div class="box-frame">
	      <h1><?php echo $this->_var['lang']['get_question_username']; ?></h1>
	 <div class="box-main clearfix">
        <div class="mod-login fl">
		<form action="user.php" method="post">
			 <dl>
              <dt><?php echo $this->_var['lang']['username']; ?>：</dt>
              <dd>

                <input type="text" value="" name="user_name" class="txt-input">
              </dd>
            </dl>
		<dl>
              <dd>
            <input type="hidden" name="act" value="get_passwd_question" />
            <input type="submit" name="submit" value="<?php echo $this->_var['lang']['submit']; ?>" class="btn-login" style="border:none; float:left;" />
   

				 <input name="button" type="button" onclick="history.back()" value="<?php echo $this->_var['lang']['back_page_up']; ?>" style="border:none; float:left;" class="btn-login" />
              </dd>
            </dl>
			
			</form>
</div>
	</div>
	</div>
	</div>
	</div>
<?php endif; ?>

<?php if ($this->_var['action'] == 'get_passwd_question'): ?>
<div class="wrapper">
  <div class="login content">
    <div class="box-frame">
	      <h1><?php echo $this->_var['lang']['input_answer']; ?></h1>
	 <div class="box-main clearfix">
        <div class="mod-login fl ">
		 <form action="user.php" method="post">
		 <dl>
              <dt style="width:120px;">密码提示问题：</dt>
              <dd style="line-height:32px; margin-left:120px;">

               <?php echo $this->_var['passwd_question']; ?>
              </dd>
            </dl>
			
			<dl>
              <dt style="width:120px;">密码提示答案：</dt>
              <dd style="margin-left:120px;">
<input name="passwd_answer" type="text" class="txt-input" />

              </dd>
            </dl>
			 
        <?php if ($this->_var['enabled_captcha']): ?>
		
		<dl>
              <dt style="width:120px;">验证码：</dt>
              <dd>
                <input type="text" name="captcha" class="txt-input txt-rand" style="width: 70px;">
                <img src="captcha.php?is_login=1&<?php echo $this->_var['rand']; ?>" alt="captcha" style="vertical-align: middle;cursor: pointer;" onClick="this.src='captcha.php?is_login=1&'+Math.random()" /></dd>
            </dl>
			
			
	
		    <?php endif; ?>
			
			<dl>
              <dt></dt>
              <dd>
			<input type="hidden" name="act" value="check_answer" />
            <input type="submit" name="submit" value="<?php echo $this->_var['lang']['submit']; ?>" class="btn-login" style="border:none; float:left;" />
            <input name="button" type="button" onclick="history.back()" value="<?php echo $this->_var['lang']['back_page_up']; ?>" style="border:none;" class="btn-login" />
              </dd>
            </dl>
		</form>
		</div>
	</div>
	</div>
	</div>
	</div>
	
	

<?php endif; ?>
<?php if ($this->_var['action'] == 'reset_password'): ?>
<script type="text/javascript">
    <?php $_from = $this->_var['lang']['password_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
      var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    </script>
<div class="usBox">
  <div class="usBox_2 clearfix">
    <form action="user.php" method="post" name="getPassword2" onSubmit="return submitPwd()">
      <br />
      <table width="80%" border="0" align="center">
        <tr>
          <td><?php echo $this->_var['lang']['new_password']; ?></td>
          <td><input name="new_password" type="password" size="25" class="inputBg" /></td>
        </tr>
        <tr>
          <td><?php echo $this->_var['lang']['confirm_password']; ?>:</td>
          <td><input name="confirm_password" type="password" size="25"  class="inputBg"/></td>
        </tr>
        <tr>
          <td colspan="2" align="center"><input type="hidden" name="act" value="act_edit_password" />
            <input type="hidden" name="uid" value="<?php echo $this->_var['uid']; ?>" />
            <input type="hidden" name="code" value="<?php echo $this->_var['code']; ?>" />
            <input type="submit" name="submit" value="<?php echo $this->_var['lang']['confirm_submit']; ?>" />
          </td>
        </tr>
      </table>
      <br />
    </form>
  </div>
</div>
<?php endif; ?>

<div class="blank"></div>
<?php echo $this->fetch('library/page_footer.lbi'); ?>
</body>
<script type="text/javascript">
var process_request = "<?php echo $this->_var['lang']['process_request']; ?>";
<?php $_from = $this->_var['lang']['passport_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
var username_exist = "<?php echo $this->_var['lang']['username_exist']; ?>";
</script>
</html>
